@import models.Tables.SubmissionRow
@(submissions: Seq[SubmissionRow])
@admin.main("admin") {
	<div class="panel panel-default" style="margin-bottom: 5px">
		<div class="panel-heading">
			<h3 class="panel-title"><span class="fa fa-home"></span> Submission message</h3>
		</div>

		<div class="panel-body">

			<div class="table-responsive panel-collapse collapse in " id="showtable">
				<table class="display table table-bordered" id="table" data-pagination="true" data-search="true"
				data-page-list="[10, 25, 50, 100, all]" data-multiple-search="true" data-show-toggle="true"
				>
					<thead>
						<tr>
							<th data-field="circid" data-sortable="true" >Name</th>
							<th data-field="circbaselinks" data-sortable="true" >Email</th>
							<th data-field="genomicPosition" data-sortable="true">Subject</th>
							<th data-field="genesymbol" data-sortable="true">Message</th>
							<th data-field="detectionfrequency" data-sortable="true">Time</th>
						</tr>
					</thead>
					@for(submission <- submissions) {
						<tr>
							<td>@submission.name</td>
							<td>@submission.email</td>
							<td>@submission.subject</td>
							<td>@submission.message</td>
							<td>@submission.time.toString("yyyy-MM-dd HH:mm:ss")</td>
						</tr>

					}
					<tr></tr>
				</table>
			</div>
		</div>
	</div>

	<script>
			$('#table').bootstrapTable({});

	</script>


}